<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
    <style>
        table{
            border: 1px solid #dddddd;
        } 
        th,td{
            border: 1px solid #dddddd;
        }
    </style>
</head>
<body>
    <table>
 <!--表头-->
 <thead>
 <tr>
     <th>姓名</th>
     <th>性别</th>
     <th>年龄</th>
     <th>爱好</th>
 </tr>

 </thead>
 <!--表格主题-->
 <tbody>
 <tr>
     <td>张三</td>
     <td rowspan="2">男</td>
     <td colspan="2">22</td>
     
 </tr>
 <tr>
    <td>丽丽</td>
    
    <td>23</td>
    <td>唱歌</td>
</tr>

 </tbody>
 <!--表尾-->
 <tfoot>

 </tfoot>


    </table>




</body>
</html>